From 7c5837067318288efc15d9e753e9f3550cb7d7a2 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 3 Jul 2023 07:14:53 +0200 Subject: [PATCH] rendernode: Work around a Cairo bug When color-matrix modifying a clear surface, the surface would remain clear according to Cairo. That's very unfortunate when we prepare a mask for inverted-alpha masking. --- gsk/gskrendernodeimpl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c index e882a3cd0c..e3ca2b8b73 100644 --- a/gsk/gskrendernodeimpl.c +++ b/gsk/gskrendernodeimpl.c @@ -3770,6 +3770,8 @@ apply_color_matrix_to_pattern (cairo_pattern_t *pattern, cairo_surface_mark_dirty (image_surface); cairo_surface_unmap_image (surface, image_surface); + /* https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/487 */ + cairo_surface_mark_dirty (surface); } static void -- 2.30.2